import { _decorator, Component, Node, Tween, tween, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('bgload')
export class bgload extends Component {

    //星星数组
    private Stars: Node[] = [];

    //角速度
    private AngleSpeed: number = 0.3;

    protected start(): void {
        this.Stars = [
            this.node.getChildByName("bigstar0"),
            this.node.getChildByName("bigstar1"),
            this.node.getChildByName("littlestar")
        ]
    }

    protected update(dt: number): void {
        this.Stars[0].angle += this.AngleSpeed;
        this.Stars[1].angle += -this.AngleSpeed;
        this.Stars[2].angle += this.AngleSpeed;
    }

}


